package android.slc.user.ui.dept.activity

import android.os.Bundle
import android.slc.appbase.ui.activity.base.AppMvvmBaseToolBarActivity
import android.slc.appbase.vm.AppBaseViewModel
import android.slc.user.R
import android.slc.user.databinding.UserActivityDeptListBinding
import android.slc.user.ui.dept.fragment.DeptTreeListBrowserNavFragment
import com.blankj.utilcode.util.FragmentUtils

/**
 *
 * @Description:
 * @Author: sunlunchang
 * @CreateDate: 2021/12/06 下午 3:32
 *
 */
class DeptListBrowserActivity :
    AppMvvmBaseToolBarActivity<UserActivityDeptListBinding, AppBaseViewModel>() {

    override fun setContentView(): Any {
        return R.layout.user_activity_dept_list
    }

    override fun onBindView(savedInstanceState: Bundle?) {
        super.onBindView(savedInstanceState)
        mSlcToolBarDelegate.setTitle(getTitleByIntent(R.string.user_label_dept_list))
        FragmentUtils.add(supportFragmentManager, DeptTreeListBrowserNavFragment().apply {
            arguments = intent.extras
        }, R.id.developersContentView)
    }
}